<?php
declare (strict_types=1);

namespace App\Dao;


use App\Kernel\Traits\DaoTrait;
use App\Model\GoodsContent;

/**
 * 商品内容Dao
 * @author 陈奕文
 * @package App\Dao
 */
class GoodsContentDao extends Dao
{
    use DaoTrait;

    /**
     * Get model.
     *
     * @return string
     */
    public function model(): string
    {
        return GoodsContent::class;
    }

    /**
     * 返回商品详细内容
     * @param int $goods_id
     * @return mixed
     */
    public function getGoodsContentByGoodsId(int $goods_id)
    {
        return GoodsContent::query()
            ->where('goods_id', $goods_id)
            ->first();
    }



}